<%-- 
    Document   : show
    Created on : 5-dec-2009, 15:57:15
    Author     : Thomas Roelens
--%>

<%@include file="../header.jsp" %>

<h1>Profile</h1>

<c:if test="${!empty flash}">
    <div class="error">${flash}</div>
</c:if>

<c:if test="${!empty patient}">
    <table>
        <tr>
            <td>
                Name:
            </td>
            <td>
                ${patient.firstname} ${patient.surname}
            </td>
        </tr>
        <tr>
            <td>
                Social security nr:
            </td>
            <td>
                ${patient.socialSecurityNumber}
            </td>
        </tr>
        <tr>
            <td>
                Username:
            </td>
            <td>
                ${patient.username}
            </td>
        </tr>
        <tr>
            <td>
                Birthdate:
            </td>
            <td>
                <fmt:formatDate value="${patient.birthDate}" pattern="dd MMM yyyy" />
            </td>
        </tr>
        <tr>
            <td>
                Bloodgroup:
            </td>
            <td>
                ${patient.bloodgroup}
            </td>
        </tr>
        <tr>
            <td>
                Address:
            </td>
            <td>
                ${location.street} ${location.number} <br/>
                ${location.zipcode} ${location.town} <br />
                ${location.country}

            </td>
        </tr>
        <tr>
            <td>
                Phone nr:
            </td>
            <td>
                ${location.phoneNumber}
            </td>
        </tr>
        <tr>
            <td>
                E-mail:
            </td>
            <td>
                ${location.email}
            </td>
        </tr>
    </table>
</c:if>


<div class="back">
    Please contact one of your GPs if this information is wrong!<br/>
    <a href="javascript:history.back()">Back</a>
</div>

<%@include file="../footer.jsp" %>